package com.xiliu.server.modules.become.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.xiliu.server.modules.app.vo.BecomeVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.Date;
import java.util.List;

import com.xiliu.common.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 房管员认证房源表对象 xl_become_item
 * 
 * @author xiliu
 * @date 2023-01-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("xl_become_item")
public class XlBecomeItem extends BaseEntity{

    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ApiModelProperty("主键ID")
    @TableId(value = "item_id", type = IdType.AUTO)
    private Long itemId;

    /** 房管员ID */
    private Long becomeId;

    /** 照片 */
    private String img;

    /** 房源名称 */
    private String houseName;

    /** 输入地址 */
    private String houseAdr;

    /** 维度 */
    private String lat;

    /** 经度 */
    private String lng;

    /** 地图地址 */
    private String mapAdr;

    /** 其他说明 */
    private String other;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "逻辑删除 1已删除 0未删除")
    private Boolean deleted;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人")
    private Long createdBy;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "更新人")
    private Long updatedBy;

    /** 数据版本 */
    private Long version;

    /** 房源表照片对象 */
    @TableField(exist = false)
    private List<BecomeVo.ImageVo> imgs;

    /** 房源表照片url */
    @TableField(exist = false)
    private List<String> imgUrl;


}
